package com.binguo.model.mapper;

import com.binguo.model.core.Mapper;
import com.binguo.model.model.Shop;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ShopMapper extends Mapper<Shop> {
    Integer getCountByTableware();

    @Select("select shop.id as id,phone as phone from shop  where shop.id in (select DISTINCT cashier_desk.shopId from cashier_desk inner join cashier_desk_extend on cashier_desk.id = cashier_desk_extend.desk_id where cashier_desk_extend.type = 10  ) ")
    List<Shop> getAllMealCellShop();


}